home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
bcsrce2.zip
/
BOXAT.BC
< prev
next >
Wrap
Text File
|
1990-10-22
|
966b
|
40 lines
let %!a = %1
if %!a0 = 0 goto ERROR
let %!b = %2
if %!b0 = 0 goto ERROR
let %!c = %3
if %!c0 = 0 goto ERROR
let %!d = %4
if %!d0 = 0 goto ERROR
let %!z = %5
if %!z0 = 0 let %!z = s
upper %!z
do_if %!z = S
box %!a %!b %!c %!d
exit
else
do_if %!z = D
double_box %!a %!b %!c %!d
exit
else
exit
end_if
end_if
GOTO END
:ERROR
echo.
echo \\7 SYNTAX---: BOXAT #r1 #c1 #r2 #c2 [S]/[D]
echo EXAMPLE--: BOXAT 1 1 23 80
echo This draws a single line box from row 1 column 1 to row 23
echo column 80.
echo EXAMPLE--: BOXAT 1 1 23 80 D
echo This draws a double line box from row 1 column 1 to row 23
echo column 80.
echo NOTE-----: S is defaulted to if there is no fifth parameter.
echo.
echo Like dBASE's @ 0,0 to 22,79 [double]
echo.
echo.
echo If there are any errors at all, program terminates and does nothing.
:END